home *** CD-ROM | disk | FTP | other *** search
- //*************************************************************************//
- // Filename: FreshLocale.h
- // Autor: Christian Taulien of Strange Intelligence
- // Purpose: Localizing include file
- // Creation: 31. März 1998
- //*************************************************************************//
- #ifndef FRESHLOCALE_H
- #define FRESHLOCALE_H
-
- #include "internalcatalog.h"
-
- #include <exec/types.h>
- #include <libraries/locale.h>
- #include <utility/tagitem.h>
-
- class CatalogC
- {
- private:
- // ## private datamembers ##
- struct Catalog *m_poCatalog;
-
- public:
- // ## public methods ##
- CatalogC(char *arg_sName, ULONG arg_ulVersion = NULL, struct Locale *arg_poLocale = NULL);
- CatalogC(char *arg_sName, struct Locale *arg_poLocale, ULONG arg_eTags ...);
- virtual ~CatalogC();
-
- BOOL openCatalog(char *arg_sName, struct Locale *arg_poLocale = NULL, struct TagItem *arg_poTagList = NULL);
- BOOL openCatalog(char *arg_sName, struct Locale *arg_poLocale, ULONG arg_eTags ...);
- void closeCatalog();
- BOOL isOpen() { return m_poCatalog ? TRUE : FALSE; };
- char getShortCut(int arg_iStringNum);
- char getShortCutLowerCase(int arg_iStringNum);
- unsigned char *getString(int arg_iStringNum);
-
- unsigned char *operator[](int arg_iStringNum) { return getString(arg_iStringNum); };
- };
-
- extern CatalogC *glob_poCatalog;
-
- #endif // FRESHLOCALE_H
-